package com.wbk.lotterysystemlotteryservice.commons.bo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.URL;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@ApiModel
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PrizeBO implements Serializable {

    @ApiModelProperty(value = "奖品等级",required = true)
    @NotBlank(message = "奖品等级不能为空")
    private String prizeLevel;

    @ApiModelProperty(value = "奖品内容",required = true)
    @NotBlank(message = "奖品内容不能为空")
    private String prizeContent;

    @ApiModelProperty(value = "奖品数量",required = true)
    @Min(value = 1, message = "奖品数量必须大于等于1")
    private Integer prizeNums;

    @ApiModelProperty(value = "奖品图片url",required = true)
    @NotBlank(message = "奖品图片url不能为空")
    @URL(message = "奖品图片url必须是一个合法的URL地址！！！")
    private String prizeImagUrl;

}
